import edu.lyun.trainingproject.data.dto.User;
import edu.lyun.trainingproject.utils.DruidDBUtil;

import java.util.List;

public class Main {
    public static void main(String[] args) {
        DruidDBUtil instance = DruidDBUtil.getInstance();
        List<User> select = instance.executeQuery("SELECT * FROM user WHERE id = ?", new Object[]{1}, true, User.class);
        for (User user : select) {
            System.out.println(user);
        }
    }
}